package test.apps.admin.model;

import java.util.List;
import java.util.Map;

import system.pojo.HHNewsarticlePojo;

import junit.framework.TestCase;

import apps.site.model.HHNewsModel;

public class THHNewsModel extends TestCase{
	
	public void testGetNewsListTest(){
		HHNewsarticlePojo news	= new HHNewsarticlePojo();
		
		HHNewsModel newsModel = new HHNewsModel(news);
		
		List<Map> newsList = newsModel.getIndexList();
		
		System.out.println(newsList.size());
		for(int i = 0; null!=newsList && i < newsList.size();i++){
			Map map =  (Map)newsList.get(i);
			System.out.println(map.get("newsarticle_id"));
			System.out.println(map.get("newsarticle_name"));
			System.out.println(map.get("description"));
		}
	}
}
